Disable gtk-doc if we are not going to build libostree-doc
authorSimon McVittie <smcv@debian.org>
Mon, 16 Oct 2017 09:15:51 +0000 (10:15 +0100)
committerSimon McVittie <smcv@debian.org>
Mon, 16 Oct 2017 09:15:51 +0000 (10:15 +0100)
In particular this affects architecture-specific builds. Note that it
remains in Build-Depends (not Build-Depends-Indep) because it is also
needed for gtkdocize during dh_autoreconf.

debian/changelog
debian/rules

index 2957ad97b76bdd0cf5c0e8ab63f2d30aaaaee9b3..1aafe200239499d8ccdf3961493ff792029c2034 100644 (file)
@@ -1,3 +1,12 @@
+ostree (2017.12-2) UNRELEASED; urgency=medium
+
+  * Disable gtk-doc if we are not going to build libostree-doc,
+    in particular for architecture-specific builds. Note that it remains
+    in Build-Depends (not Build-Depends-Indep) because it is also needed
+    for gtkdocize during dh_autoreconf.
+
+ -- Simon McVittie <smcv@debian.org>  Mon, 16 Oct 2017 10:13:54 +0100
+
 ostree (2017.12-1) unstable; urgency=medium
 
   * New upstream release
index 7c76a019e8097aeaf196e2086cfee8519df68284..9e7236f3cdd313b7f351eb7c2fb350293a7b7988 100755 (executable)
@@ -5,6 +5,8 @@ export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed
 # Some tests assert that we will see English strings
 export LC_ALL=C.UTF-8
 
+binaries := $(shell dh_listpackages)
+
 %:
        dh $@ --with=gir
 
@@ -21,11 +23,15 @@ configure_options = \
        --with-systemdsystemunitdir=/lib/systemd/system \
        $(NULL)
 
-ifeq (,$(filter nodoc,$(DEB_BUILD_PROFILES)))
+ifneq ($(filter libostree-doc,$(binaries)),)
 configure_options += --enable-gtk-doc
-configure_options += --enable-man
 else
 configure_options += --disable-gtk-doc
+endif
+
+ifeq (,$(filter nodoc,$(DEB_BUILD_PROFILES)))
+configure_options += --enable-man
+else
 configure_options += --disable-man
 endif